package com.ruoyi.system.client.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.client.mapper.ServiceClientVisitsMapper;
import com.ruoyi.system.client.domain.ServiceClientVisits;
import com.ruoyi.system.client.service.IServiceClientVisitsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 客户跟踪回访Service业务层处理
 * 
 *@author Administrator
 * @date 2021-03-06
 */
@Service
public class ServiceClientVisitsServiceImpl implements IServiceClientVisitsService 
{
    @Autowired
    private ServiceClientVisitsMapper serviceClientVisitsMapper;

    /**
     * 查询客户跟踪回访
     * 
     * @param id 客户跟踪回访ID
     * @return 客户跟踪回访
     */
    @Override
    public ServiceClientVisits selectServiceClientVisitsById(Long id)
    {
        return serviceClientVisitsMapper.selectServiceClientVisitsById(id);
    }

    /**
     * 查询客户跟踪回访列表
     * 
     * @param serviceClientVisits 客户跟踪回访
     * @return 客户跟踪回访
     */
    @Override
    public List<ServiceClientVisits> selectServiceClientVisitsList(ServiceClientVisits serviceClientVisits)
    {
        return serviceClientVisitsMapper.selectServiceClientVisitsList(serviceClientVisits);
    }

    /**
     * 新增客户跟踪回访
     * 
     * @param serviceClientVisits 客户跟踪回访
     * @return 结果
     */
    @Override
    public int insertServiceClientVisits(ServiceClientVisits serviceClientVisits)
    {
        return serviceClientVisitsMapper.insertServiceClientVisits(serviceClientVisits);
    }

    /**
     * 修改客户跟踪回访
     * 
     * @param serviceClientVisits 客户跟踪回访
     * @return 结果
     */
    @Override
    public int updateServiceClientVisits(ServiceClientVisits serviceClientVisits)
    {
        return serviceClientVisitsMapper.updateServiceClientVisits(serviceClientVisits);
    }

    /**
     * 删除客户跟踪回访对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteServiceClientVisitsByIds(String ids)
    {
        return serviceClientVisitsMapper.deleteServiceClientVisitsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除客户跟踪回访信息
     * 
     * @param id 客户跟踪回访ID
     * @return 结果
     */
    @Override
    public int deleteServiceClientVisitsById(Long id)
    {
        return serviceClientVisitsMapper.deleteServiceClientVisitsById(id);
    }
}
